package com.ltx.service;

import com.ltx.dao.CardMapper;
import com.ltx.pojo.Card;

import java.util.List;

public class CardServiceImpl implements CardService{
    //引入dao层
    private CardMapper cardMapper;
    public void setCardMapper(CardMapper cardMapper) {
        this.cardMapper = cardMapper;
    }

    @Override
    public int addCardMapper(Card card) {
        return cardMapper.addCardMapper(card);
    }

    @Override
    public List<Card> queryCardMapper() {
        return cardMapper.queryCardMapper();
    }

    @Override
    public Card queryByCardMapper(int mId) {
        return cardMapper.queryByCardMapper(mId);
    }

    @Override
    public int updateCardMapper(Card card) {
        return cardMapper.updateCardMapper(card);
    }

    @Override
    public int deleteCardMapper(int mId) {
        return cardMapper.deleteCardMapper(mId);
    }
}
